﻿{include file="public/header" /}
	<form method="post" class="form-x" action="{if $data.id}?id={$data.id}{/if}">
	<div class="panel admin-panel">
		<div class="panel-head"><strong>{:lang('currency')['edit']}</strong></div>
		<br/>
		<div class="form-group">
			<div class="label">
				<label for="phone">{:lang('label')['phone']}</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="phone" name="phone" value="{$data.phone}" size="80" placeholder="{:lang('label')['phone']}" />
			</div>
		</div>
		<!--<div class="form-group">
			<div class="label">
				<label for="password">{:lang('label')['password']}</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="password" name="password" value="" size="80" placeholder="{:lang('label')['password']}" {if !$data.id}data-validate="required:{:lang('currency')['required']}"{/if} />
			</div>
		</div>-->
		<div class="form-group">
		<div class="input-inline clearfix">
			<div class="label">
				<label for="headimg">{:lang('label')['headimg']}</label>
			</div>
			<div class="field">
				<input type="text" readonly class="input input-auto" id="headimg" name="headimg" value="{$data.headimg}" size="65" placeholder="{:lang('label')['headimg']}" />
				<span class="addbtn"><button type="button" data-id="headimg" class="button upload">{:lang('form')['file']}</button></span>
			</div>
		</div>
		</div>
		<div class="form-group">
			<div class="label">
				<label for="phone">欠款</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="money" name="money" value="{$data.money}" size="20" placeholder="欠款金额" /> 元
			</div>
		</div>
		<div class="form-group">
			<div class="label">
				<label>{:lang('label')['status']}</label>
			</div>
			<div class="field">
				<div class="button-group button-group-small radio">
					<label class="button {if $data.status == "1" || !$data.status}active{/if}">
						<input name="status" value="1" {if $data.status == "1" || !$data.status}checked="checked"{/if} type="radio"><span class="icon icon-check"></span> {:lang('currency')['status_1']}
					</label>
					<label class="button {if $data.status == "2"}active{/if}">
						<input name="status" value="2" {if $data.status == "2"}checked="checked"{/if} type="radio"><span class="icon icon-times"></span> {:lang('currency')['status_2']}
					</label>
				</div>
			</div>
		</div>
		<div class="form-group">
			<div class="label">
				<label>{:lang('label')['level']}</label>
			</div>
			<div class="field">
				<div class="button-group button-group-small radio">
					<label class="button {if $data.level == "0" || !$data.level}active{/if}">
						<input name="level" value="0" {if $data.level == "0" || !$data.level}checked="checked"{/if} type="radio"><span class="icon icon-check"></span> {:lang('label')['level_0']}</label>
					<label class="button {if $data.level == "1"}active{/if}">
						<input name="level" value="1" {if $data.level == "1"}checked="checked"{/if} type="radio"><span class="icon icon-check"></span> {:lang('label')['level_1']}</label>
					<label class="button {if $data.level == "2"}active{/if}">
						<input name="level" value="2" {if $data.level == "2"}checked="checked"{/if} type="radio"><span class="icon icon-check"></span> {:lang('label')['level_2']}</label>
				</div>
			</div>
		</div>
		<div class="form-button">
			<button class="button bg-main" type="submit">{:lang('form')['submit']}</button>
		</div>
		<br/>
		</div>
	</form>
{include file="public/footer" /}